package com.gjszn.kh.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gjszn.kh.model.MyBatisParameterBean;
import com.gjszn.kh.model.RecommendationCode;

public interface RecommendationCodeMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(RecommendationCode record);

	int insertSelective(RecommendationCode record);

	RecommendationCode selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(RecommendationCode record);

	int updateByPrimaryKey(RecommendationCode record);
	
	RecommendationCode selectByMemberNoAndCode(@Param("number") String number, @Param("code") String code);
	
	List<RecommendationCode> selectAllByMember(@Param("number") String number);
	
	List<RecommendationCode> selectAll();
	
	List<RecommendationCode> selectForPage(MyBatisParameterBean bean);
	
	List<RecommendationCode> selectForPageByNumber(
			@Param("number") String number, 
			@Param("start") int start, 
			@Param("size") int size);
	
	int total(@Param("member") String member);
}